export function getTimerDefinitionType(timer) {
    if (!timer) {
        return;
    }
    var timeDate = timer.get('timeDate');
    if (typeof timeDate !== 'undefined') {
        return 'timeDate';
    }
    var timeCycle = timer.get('timeCycle');
    if (typeof timeCycle !== 'undefined') {
        return 'timeCycle';
    }
    var timeDuration = timer.get('timeDuration');
    if (typeof timeDuration !== 'undefined') {
        return 'timeDuration';
    }
}